<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

class ArchivesDetail
{
    public $login = true; //是否需要登录才能访问该接口
    public $title = "档案详情";
    public $group = '档案管理';
    public $desc = "";

    public $input = [
        'id' => 'required;int;label=档案id;',
    ];

    public $output = [
        'id' => 'label=id;',
        'name' => 'label=档案人姓名;',
        'relation' => 'label=关系;',
        'relation_label' => 'label=关系别名;',
        'sex' => 'label=性别;comment=1男、2女',
        'birthday' => 'label=生日;comment=格式:1992-09-09;',
    ];

    public function run($param, $uid)
    {
        $result = OE('Archives')->archiveDetail($uid, $param);
        return $result;
    }
}
